(global-set-key (kbd "C-x C-r") 'recentf-open-files)
(global-set-key "\C-s" 'swiper)
(global-set-key (kbd "C-c C-r") 'ivy-resume)
(global-set-key (kbd "<f6>") 'ivy-resume)
(global-set-key (kbd "M-x") 'counsel-M-x)
(global-set-key (kbd "C-x C-f") 'counsel-find-file)
(global-set-key (kbd "<f1> f") 'counsel-describe-function)
(global-set-key (kbd "<f1> v") 'counsel-describe-variable)
(global-set-key (kbd "<f1> l") 'counsel-find-library)
(setq initial-frame-alist (quote ((fullscreen . maximized))))
(global-set-key (kbd "C-=") 'er/expand-region)



;;; 定义复制搜索匹配的功能：
(defun copy-isearch-match ()
    (interactive)
    (copy-region-as-kill isearch-other-end (point)))
;;并将其添加到搜索模式映射中
(define-key isearch-mode-map (kbd "M-w") 'copy-isearch-match)





(provide 'keybind)